<?php
require_once __DIR__ . '/../vendor/autoload.php';
require_once __DIR__ . '/SyncExecute.php';
require_once __DIR__ . '/TimerExecute.php';

$GLOBALS['hc_sw_port']    = 9651;
$GLOBALS['hc_sw_options'] = [
    'worker_num'        => 2,
    'daemonize'         => true,   // 守护进程
    'timer'             => 1000,   // ms
];

\HC\Swoole\Timer::register(\Demo\TimerExecute::class);